package com.zx.rbac.pms.controller;

import com.zx.rbac.common.api.Result;
import com.zx.rbac.pms.model.PmsProductEntity;
import com.zx.rbac.pms.service.PmsProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;
import java.util.Map;


/**
 * 商品信息
 *
 * @author Qin
 * @email xiao_zhi_2020@163.com
 * @date 2021-08-06 22:07:14
 */
@RestController
@RequestMapping("rbacApi/pmsproduct")
public class PmsProductController {

    @Autowired
    private PmsProductService pmsProductService;

    /**
     * 列表
     */
    @RequestMapping("/list")
    //@RequiresPermissions("rbacApi:pmsproduct:list")
    public Result list(@RequestParam Map<String, Object> params){
        return Result.success();
    }


    /**
     * 信息
     */
    @RequestMapping("/info/{id}")
    //@RequiresPermissions("rbacApi:pmsproduct:info")
    public Result info(@PathVariable("id") Long id){
        return Result.success();
    }

    /**
     * 保存
     */
    @RequestMapping("/save")
    //@RequiresPermissions("rbacApi:pmsproduct:save")
    public Result save(@RequestBody PmsProductEntity pmsProduct){
        return Result.success();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    //@RequiresPermissions("rbacApi:pmsproduct:update")
    public Result update(@RequestBody PmsProductEntity pmsProduct){
        return Result.success();
    }

    /**
     * 删除
     */
    @RequestMapping("/delete")
    //@RequiresPermissions("rbacApi:pmsproduct:delete")
    public Result delete(@RequestBody Long[] ids){
        return Result.success();
    }

}
